﻿#ifndef MYLABEL_H
#define MYLABEL_H

#include <QLabel>

class mylabel : public QLabel
{
    Q_OBJECT
public:
    explicit mylabel(QWidget *parent = nullptr);
    void enterEvent(QEvent *event);//进入
    void leaveEvent(QEvent *);//离开

    virtual void mousePressEvent(QMouseEvent *ev);//按下
    virtual void mouseReleaseEvent(QMouseEvent *ev);//释放
    virtual void mouseMoveEvent(QMouseEvent *ev);//移动
    bool event(QEvent *e);//通过事件分发器拦截事件

signals:

};

#endif // MYLABEL_H
